package br.edu.ufcg.lsd.wbis.ui.client.beans;

import java.io.Serializable;
import java.sql.Date;

public class EquipInfo implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String inventoryCode;
	private String type;
	private String model;
	private boolean available;
	private boolean allocable;
	private Date acqDate;
	private String localization;
	private String brand;
	private String serialCode;

	public EquipInfo() {
		// Do nothing!
	}

	public EquipInfo(EquipInfo info) {
		setInventoryCode(info.getInventoryCode());
		setType(info.getType());
		setModel(info.getModel());
		setBrand(info.getBrand());
		setLocalization(info.getLocalization());
		setAcqDate(info.getAcqDate());
		setAllocable(info.isAllocable());
		setAvailable(info.isAvailable());
		setSerialCode(info.getSerialCode());
	}

	public String getSerialCode() {
		return serialCode;
	}

	public boolean isAllocable() {
		return allocable;
	}

	public String getInventoryCode() {
		return inventoryCode;
	}

	public String getType() {
		return type;
	}

	public String getModel() {
		return model;
	}

	public boolean isAvailable() {
		return available;
	}

	public Date getAcqDate() {
		return acqDate;
	}

	public String getLocalization() {
		return localization;
	}

	public String getBrand() {
		return brand;
	}

	/**
	 * @param inventoryCode
	 */
	public void setInventoryCode(String inventoryCode) {
		this.inventoryCode = inventoryCode;

	}

	/**
	 * @param type
	 */
	public void setType(String type) {
		this.type = type;

	}

	/**
	 * @param model
	 */
	public void setModel(String model) {
		this.model = model;
	}

	/**
	 * @param brand
	 */
	public void setBrand(String brand) {
		this.brand = brand;
	}

	/**
	 * @param localization
	 */
	public void setLocalization(String localization) {
		this.localization = localization;
	}

	/**
	 * @param acquisitionDate
	 */
	public void setAcqDate(Date acquisitionDate) {
		this.acqDate = acquisitionDate;
	}

	/**
	 * @param alocable
	 */
	public void setAllocable(boolean allocable) {
		this.allocable = allocable;
	}

	/**
	 * @param available
	 */
	public void setAvailable(boolean available) {
		this.available = available;
	}

	/**
	 * @param serialCode
	 */
	public void setSerialCode(String serialCode) {
		this.serialCode = serialCode;
	}

}
